package com.rimi.commons;


public enum ResultStatus implements ResultCode{

    /**
     * 系统请求状态枚举类
     */
    OK(1001,"请求成功"),
    ERROR(1002,"系统异常，请联系管理员"),
    LOGIN_FAILED(1003,"用户名密码不匹配"),
    USER_NOT_EXIST(1006,"用户名不存在"),
    UPDATE_PASSWORD_FAILED(1005,"密码修改失败"),
    ADD_FAILED(2001,"添加失败"),
    SHOW_FAILED(2002,"查询失败"),
    DELETE_FAILED(2003,"删除失败"),
    UPDATE_FAILED(2004,"更新失败"),
    ROLE_AUTH_FAILED(1005,"角色校验失败"),
    AUTH_FAILED(1004,"认证失败"),
    PERMS_AUTH_FAILED(1006,"权限校验失败"),
    ACCOUNT_REPEAT(3001,"账号已被注册"),
    GETMESSAGE_FAILED(4001,"获取验证码失败"),
    MESSAGE_FAILED(4002,"验证码错误"),
    PLEASE_LOGIN(5001,"请进行用户登录"),
    NO_PASSWORD(6001,"未注册")
    ;

    int code;
    String msg;

    ResultStatus(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
